package com.vaadin.thomas.contenttool.data;

import org.neo4j.graphdb.Node;

public abstract class AbstractData {

	protected Node node;

	protected AbstractData(Node n) {
		node = n;
	}

	@Override
	public boolean equals(Object other) {

		if (this == other) {
			return true;
		}
		if (other == null || !(other instanceof AbstractData)) {
			return false;
		}

		return node.equals(((AbstractData) other).node);
	}

	@Override
	public int hashCode() {
		return node.hashCode();
	}
}
